package com.letian.im.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.letian.common.annotation.Excel;
import com.letian.common.core.domain.BaseEntity;

/**
 * 好友请求对象 im_friends_request
 * 
 * @author bmz
 * @date 2023-08-13
 */
public class ImFriendsRequest extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 好友请求ID */
    private Long id;

    /** 发送用户ID */
    @Excel(name = "发送用户ID")
    private Long sendUserId;

    /** 接受用户ID */
    @Excel(name = "接受用户ID")
    private Long acceptUserId;

    /** 发送请求的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发送请求的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date requestDateTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSendUserId(Long sendUserId) 
    {
        this.sendUserId = sendUserId;
    }

    public Long getSendUserId() 
    {
        return sendUserId;
    }
    public void setAcceptUserId(Long acceptUserId) 
    {
        this.acceptUserId = acceptUserId;
    }

    public Long getAcceptUserId() 
    {
        return acceptUserId;
    }
    public void setRequestDateTime(Date requestDateTime) 
    {
        this.requestDateTime = requestDateTime;
    }

    public Date getRequestDateTime() 
    {
        return requestDateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sendUserId", getSendUserId())
            .append("acceptUserId", getAcceptUserId())
            .append("requestDateTime", getRequestDateTime())
            .toString();
    }
}
